package com.pethome.pet.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.pethome.common.annotation.Excel;
import com.pethome.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 常见疾病对象 t_disease
 * 
 * @author 胡继承
 * @date 2024-09-02
 */
@TableName("t_disease")
public class Disease extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键自增， */
    @Excel(name = "主键自增，")
    @TableId
    private Long diseaseId;

    /** 物种（猫，狗,猫/狗） */
    @Excel(name = "物种", readConverterExp = "猫=，狗,猫/狗")
    private String petSpecies;

    /** 疾病名称 */
    @Excel(name = "疾病名称")
    private String diseaseName;

    /** 疾病症状 */
    @Excel(name = "疾病症状")
    private String diseaseSymptoms;

    /** 疾病原因 */
    @Excel(name = "疾病原因")
    private String diseaseCause;

    /** 治疗方法 */
    @Excel(name = "治疗方法")
    private String diseaseTreatment;

    /** 疾病搜索次数 */
    @Excel(name = "疾病搜索次数")
    private Long diseaseSearchCount;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date diseaseCreateTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date diseaseUpdateTime;

    public void setDiseaseId(Long diseaseId) 
    {
        this.diseaseId = diseaseId;
    }

    public Long getDiseaseId() 
    {
        return diseaseId;
    }
    public void setPetSpecies(String petSpecies) 
    {
        this.petSpecies = petSpecies;
    }

    public String getPetSpecies() 
    {
        return petSpecies;
    }
    public void setDiseaseName(String diseaseName) 
    {
        this.diseaseName = diseaseName;
    }

    public String getDiseaseName() 
    {
        return diseaseName;
    }
    public void setDiseaseSymptoms(String diseaseSymptoms) 
    {
        this.diseaseSymptoms = diseaseSymptoms;
    }

    public String getDiseaseSymptoms() 
    {
        return diseaseSymptoms;
    }
    public void setDiseaseCause(String diseaseCause) 
    {
        this.diseaseCause = diseaseCause;
    }

    public String getDiseaseCause() 
    {
        return diseaseCause;
    }
    public void setDiseaseTreatment(String diseaseTreatment) 
    {
        this.diseaseTreatment = diseaseTreatment;
    }

    public String getDiseaseTreatment() 
    {
        return diseaseTreatment;
    }
    public void setDiseaseSearchCount(Long diseaseSearchCount) 
    {
        this.diseaseSearchCount = diseaseSearchCount;
    }

    public Long getDiseaseSearchCount() 
    {
        return diseaseSearchCount;
    }
    public void setDiseaseCreateTime(Date diseaseCreateTime) 
    {
        this.diseaseCreateTime = diseaseCreateTime;
    }

    public Date getDiseaseCreateTime() 
    {
        return diseaseCreateTime;
    }
    public void setDiseaseUpdateTime(Date diseaseUpdateTime) 
    {
        this.diseaseUpdateTime = diseaseUpdateTime;
    }

    public Date getDiseaseUpdateTime() 
    {
        return diseaseUpdateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("diseaseId", getDiseaseId())
            .append("petSpecies", getPetSpecies())
            .append("diseaseName", getDiseaseName())
            .append("diseaseSymptoms", getDiseaseSymptoms())
            .append("diseaseCause", getDiseaseCause())
            .append("diseaseTreatment", getDiseaseTreatment())
            .append("diseaseSearchCount", getDiseaseSearchCount())
            .append("diseaseCreateTime", getDiseaseCreateTime())
            .append("diseaseUpdateTime", getDiseaseUpdateTime())
            .toString();
    }
}
